# Contributor: stef <l0ls0fo2i@ctrlc.hu>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=opmsg
pkgver=1.84
pkgrel=1
pkgdesc="opmsg gpg-like encryption system"
url="https://github.com/stealth/opmsg"
arch="all"
license="GPL-3.0-or-later"
makedepends="openssl-dev>3"
source="$pkgname-$pkgver.tar.gz::https://github.com/stealth/opmsg/archive/rel-${pkgver}s.tar.gz"

builddir="$srcdir/$pkgname-rel-${pkgver}s"

build() {
	cd "$builddir/src"
	make all contrib
}

package() {
	cd "$builddir/src/build"
	mkdir -p "$pkgdir"/usr/bin
	cp opcoin opmsg opmux "$pkgdir"/usr/bin
}

sha512sums="
055795e9fde157bd43f2ff124800e5f1e4d8e0349f0acbf6afe6e3c3855f01bcb0068051e0d22aa454ff2f95b6320c18823e8e066d36bcfa0f560e561aa69134  opmsg-1.84.tar.gz
"
